using System;
using System.Collections;
using System.Collections.Generic;

using Framework.Library.Base;

namespace Framework.Library.Domain
{
    public partial class PortalModulecontrol : BusinessBase<int>
    {
        #region Declarations

		
		private string _controlName = String.Empty;
		private string _controlTitle = String.Empty;
		private string _controlKey = String.Empty;
		private string _controlPath = String.Empty;
		private string _controlRole = String.Empty;
		private string _controlIcon = String.Empty;
		private string _controlDescription = String.Empty;
		private int _controlOrder = default(Int32);
		private bool _controlHeader = default(Boolean);
		
		private PortalModule _portalModule = null;
		
		private IList<PortalTabcontrol> _portalTabcontrols = new List<PortalTabcontrol>();
		
        #endregion

        #region Constructors

        public PortalModulecontrol() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_controlName);
			sb.Append(_controlTitle);
			sb.Append(_controlKey);
			sb.Append(_controlPath);
			sb.Append(_controlRole);
			sb.Append(_controlIcon);
			sb.Append(_controlDescription);
			sb.Append(_controlOrder);
			sb.Append(_controlHeader);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string ControlName
        {
            get { return _controlName; }
			set
			{
				
				_controlName = value;
				
			}
        }
		
		public virtual string ControlTitle
        {
            get { return _controlTitle; }
			set
			{
				
				_controlTitle = value;
				
			}
        }
		
		public virtual string ControlKey
        {
            get { return _controlKey; }
			set
			{
				
				_controlKey = value;
				
			}
        }
		
		public virtual string ControlPath
        {
            get { return _controlPath; }
			set
			{
				
				_controlPath = value;
				
			}
        }
		
		public virtual string ControlRole
        {
            get { return _controlRole; }
			set
			{
				
				_controlRole = value;
				
			}
        }
		
		public virtual string ControlIcon
        {
            get { return _controlIcon; }
			set
			{
				
				_controlIcon = value;
				
			}
        }
		
		public virtual string ControlDescription
        {
            get { return _controlDescription; }
			set
			{
				
				_controlDescription = value;
				
			}
        }
		
		public virtual int ControlOrder
        {
            get { return _controlOrder; }
			set
			{
				
				_controlOrder = value;
				
			}
        }
		
		public virtual bool ControlHeader
        {
            get { return _controlHeader; }
			set
			{
				
				_controlHeader = value;
				
			}
        }
		
		public virtual PortalModule PortalModule
        {
            get { return _portalModule; }
			set
			{
				
				_portalModule = value;
				
			}
        }
		
		public virtual IList<PortalTabcontrol> PortalTabcontrols
        {
            get { return _portalTabcontrols; }
            set
			{
				
				_portalTabcontrols = value;
				
			}
        }
		
        #endregion
    }
}
